import { createApp } from 'vue'

import App from '@/App.vue'
import router from '@/router'
// 导入pinia
import pinia from '@/stores'
// 导入全局组件
import golobalComponents from '@/components'
// 导入默认样式
import '@/styles/index.scss'
// 导入路由鉴权
import '@/permission'
// 暗黑模式
import 'element-plus/theme-chalk/dark/css-vars.css'
// 图片懒加载
const app = createApp(App)

app.use(golobalComponents)
app.use(pinia)
app.use(router)

app.mount('#app')
